package com.joey.protocol;

/**
 * Created by Joey on 2018/3/29.
 * http表头的内容格式定义
 */

public final class ContentType {

    public final static String TYPE_HTML = "text/html";//;//   HTML格式
    public final static String TYPE_TEXT = "text/plain";//  纯文本格式
    public final static String TYPE_TEXT_XML = "text/xml";//    XML格式
    public final static String TYPE_IMAGE_GIF = "image/gif";//  gif图片格式
    public final static String TYPE_IMAGE_JPEG = "image/jpeg";//  jpg图片格式
    public final static String TYPE_IMAGE_PNG = "image/png";//  png图片格式
//    以application开头的媒体格式类型;

    public final static String TYPE_XHTML = "application/xhtml+xml";//  XHTML格式
    public final static String TYPE_XML = "application/xml";//   XML数据格式
    public final static String TYPE_ATOM_XML = "application/atom+xml";//  Atom XML聚合格式
    public final static String TYPE_JSON = "application/json";//   JSON数据格式
    public final static String TYPE_PDF = "application/pdf";//  pdf格式
    public final static String TYPE_WORD = "application/msword";//   Word文档格式
    public final static String TYPE_OSTREM = "application/octet-stream";//   二进制流数据（如常见的文件下载）
    public final static String TYPE_FORM = "application/x-www-form-urlencoded";//中默认的encType，form表单数据被编码为key/value格式发送到服务器（表单默认的提交数据的格式）

}
